let express = require('express')
let router = express.Router()
let user_httphandler = require('../../modules/user/index')

router
    .get("/user", function (req, res, next) {
        console.log('dddddddddd');
        console.error('ddddddddddddddddddddddd')
        res.json('test')
    })
    .post('/user', function (req, res, next) {
        user_httphandler.addUser(req,res,next)
    })

router
    .post('/login', function (req, res, next) {
        user_httphandler.loginUser(req,res,next)
    })

module.exports = router